<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  


<script type="text/javascript"
	src='<c:url value="/resources/js/jquery-ui-1.8.16.custom.min.js"/>'></script>
<link rel="stylesheet"
	href='<c:url value="/resources/css/redmond/jquery-ui-1.8.16.custom.css"/>' />
<script type="text/javascript"
	src='<c:url value="/resources/js/configuration/operatorPage.js"/>'></script>
	
<fieldset>
<legend>操作员管理</legend>
<input id="addOperatorButton" type="button" value="添加"">
<div id="operatorsTable">
</div>
<div id="addOperatorFormDiv" title="添加操作员">

<form:form modelAttribute="operator" method="post" id="addOperatorForm" >
<form:hidden path="id" value="-1" id="operatorID"/>
<table>
	<tr>
		<td>姓名:</td>
		<td><form:input path="name" id="name"/></td>
	</tr>
	<tr>
		<td>用户名:</td>
		<td><form:input path="userName" id="userName"/></td>
	</tr>
	<tr>
		<td>密码:</td>
		<td><form:password path="password" id="password"/></td>
	</tr>
	<tr>
		<td>确认密码:</td>
		<td><input type="password" name="re_password" id="repassword"></td>
	</tr>
	<tr>
		<td>权限:</td>
		<td>
			<c:forEach items="${permissionList }" var="permisssion" varStatus="status">
				<input type="checkbox" name="permissionID" value="${permisssion.permissionID}">${permisssion.description}
				<c:if test="${status.count%2==0}"><br/></c:if>
			</c:forEach>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td align="right"><input id="saveUpdateButton" type="button" value="保存"></td>
	</tr>
</table>
</form:form>
</div>
</fieldset>